package com.zzyl.redis;

import com.zzyl.nursing.service.WechatService;
import com.zzyl.nursing.service.impl.WechatServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class WechatServiceTest {

    @Autowired
    private WechatService wechatService;
    @Test
    void GetOpenid() {
        String openid = wechatService.getOpenid("0d30300w3uGE153Fuw3w374bbF30300-");
        System.out.println(openid);
    }

    @Test
    void GetPhone() {
        String phone = wechatService.getPhone("523b89201d9d99872f867c1a0d0cdfe4c1f27a3e72ed565cdd35fd7a98799c5e");
        System.out.println(phone);
    }
}
